const BeforEach = (props) => {
    const Com = props.component;
    return (
        <div>
            <Com {...props} routes={props.children} />
        </div>
    )
}

export default BeforEach
